﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class PromoterInfoConfig : EntityTypeConfiguration<PromoterInfo>
    {
        public PromoterInfoConfig()
        {
            ToTable("Himall_Promoter");
            Property(item => item.ShopName).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.Remark).HasColumnType("varchar").HasMaxLength(2000);
            Property(item => item.PlatId).HasColumnType("varchar").HasMaxLength(2000);
            HasRequired(x => x.Himall_Members).WithMany(x => x.Himall_Promoter).HasForeignKey(x => x.UserId);
        }
    }
}
